package com.itbz.service.Impl;

import com.itbz.dao.Impl.ScreDaoImpl;
import com.itbz.dao.ScoreDao;
import com.itbz.pojo.Score;
import com.itbz.service.ScoreService;

import java.util.List;

public class ScoreServiceImpl implements ScoreService {
    private ScoreDao scoreDao=new ScreDaoImpl();
    @Override
    public int insertAdd(Score score) {
        return scoreDao.addScore(score);
    }

    @Override
    public List<Score> allFind() {
        return scoreDao.findAll();
    }
}
